<?php
	
	//on instancie l'utilisateur
	$user = $controller->getCurrentUser();
	$controller->setVar('user',$user);
	
	//on verifie les permissions
	if ($user->isAllowedTo(GRADE_PERM_BORROW))
	{	
		$listUser = user::getMemberList();
		$controller->setVar('listUser', $listUser);
		//on rend la vue    
		$controller->render($action);
	}
	else
		$controller->render('errorRights');

	
?>
